<?php
/**
 * Created by  青岛火一五信息科技有限公司
 * author: Zane
 * QQ  : 3186355915
 * Date: 2019/4/27
 * Time: 01:14
 */

namespace LaravelPatterns;


class Traveller
{
    protected $trafficTool;
    public function __construct(Visit $trafficTool)
    {
       $this->trafficTool = $trafficTool;
    }

    public function visitTibet()
    {
        $this->trafficTool->go();
    }
}